﻿#ifndef OPTIONEDITOR_H
#define OPTIONEDITOR_H

#include "common/baseeditor_dialog.h"
#include "m_fhs.h"

#define OPT_EDIT QStringLiteral("编辑...")

namespace Ui {
class OptionEditor;
}

class OptionEditor : public BaseEditorDialog
{
    Q_OBJECT

public:
    explicit OptionEditor(QWidget *parent, const QString &type);
    ~OptionEditor();

    void createMenu();
    void updateView();
    void removeItem();
    bool addItem(const QString &label);

private slots:
    void on_btn_submit_clicked();

private:
    Ui::OptionEditor *ui;

    QString _type;
};

#endif // OPTIONEDITOR_H
